﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using Abp.Domain.Entities;
using FwProject.Core.Distribution;

namespace FwProject.Distribution.Dto
{
    [AutoMap(typeof(DistributionInfo))]
    public class RestaurantDisDetails : Entity<Guid>
    {

        public string DriverUserName{get;set; }

        public string DriverMobile { get; set; }
        public decimal TotalPrice { get; set; } = 0;
        public List<RestaurantDistributionDetailsListDto> DistributionInfoListDetails { get; set; }
        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }
        public Pricestatus Pricestatus { get; set; } = Pricestatus.未结账;

    }
    [AutoMap(typeof(DistributionInfoDetails))]
    public class RestaurantDistributionDetailsListDto {
        public string TypeNumberName { get; set; }
        /// <summary>
        /// 本次配送套数
        /// </summary>
        /// <value>The distributioncount.</value>
       
        public int Distributioncount { get; set; } = 0;
        /// <summary>
        /// 回收
        /// </summary>
        /// <value>The recoverycount.</value>
        
        public int Recoverycount { get; set; } = 0;
        /// <summary>
        /// 换货
        /// </summary>
        /// <value>The exchangegoodscount.</value>
     
        public int Exchangegoodscount { get; set; } = 0;
        /// <summary>
        /// 折损
        /// </summary>
        /// <value>The damagecount.</value>
      
        public int Damagecount { get; set; } = 0;
        /// <summary>
        /// 赠送
        /// </summary>
        /// <value>The givecount.</value>
        [Display(Name = "赠送")]
        public int Givecount { get; set; } = 0;
        /// <summary>
        /// 退箱
        /// </summary>
        /// <value>The backboxcount.</value>
        [Display(Name = "退箱")]
        public int Backboxcount { get; set; } = 0;
        /// <summary>
        /// 退数
        /// </summary>
        /// <value>The backnumbercount.</value>
        [Display(Name = "退数")]
        public int Backnumbercount { get; set; } = 0;

    }





}
